package com.ruoyi.reportsnhnt.mapper;

import com.ruoyi.reportsnhnt.domain.ReportSnhntNjsjBaDetail;
import com.ruoyi.reportsnhnt.domain.vo.ReportSnhntNjsjBaDetailVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 混凝土凝结时间试验检测记录详情Mapper接口
 *
 * @author zxs
 * @date 2024-06-21
 */
public interface ReportSnhntNjsjBaDetailMapper extends BaseMapperPlus<ReportSnhntNjsjBaDetailMapper, ReportSnhntNjsjBaDetail, ReportSnhntNjsjBaDetailVo> {

    @Select("select * from report_snhnt_njsj_ba_detail where excel_id = #{excelId} and del_flag = 0")
    List<ReportSnhntNjsjBaDetail> selectListByExcelId(Long excelId);
    @Delete("delete from report_snhnt_njsj_ba_detail where excel_id = #{excelId}")
    void deleteByExcelId(Long excelId);
}
